home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _3984945587F94E66A8E7CF3BAF1964D2 < prev    next >
Encoding:
Text File  |  2004-01-06  |  4.0 KB  |  151 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2. --#Script:LoadScript("scripts/materials/mat_metal_plate.lua")
  3.  
  4. Materials["mat_metal_plate_f0"] = {
  5.  
  6.     type="mat_metal_plate_f0",
  7. -------------------------------------
  8.     PhysicsSounds=PhysicsSoundsTable.Hard,
  9. -------------------------------------    
  10.     bullet_drop_single = CommonEffects.common_bullet_drop_single_metal,
  11.     bullet_drop_rapid = CommonEffects.common_bullet_drop_rapid_metal,
  12. -------------------------------------    
  13.     bullet_hit = {
  14.         sounds = {
  15.             {"Sounds/bullethits/Mbullet1.wav",SOUND_UNSCALABLE,200,5,60},
  16.             {"Sounds/bullethits/Mbullet2.wav",SOUND_UNSCALABLE,200,5,60},
  17.             {"Sounds/bullethits/Mbullet3.wav",SOUND_UNSCALABLE,200,5,60},
  18.             {"Sounds/bullethits/Mbullet4.wav",SOUND_UNSCALABLE,200,5,60},
  19.             
  20.         },
  21.         
  22.         decal = { 
  23.             texture = System:LoadTexture("Textures/Decal/metal.dds"),
  24.             scale = 0.04,
  25.         },
  26.         
  27.         particleEffects = {
  28.             name = "bullet.hit_metal.a",
  29.         },
  30.     },
  31.     pancor_bullet_hit = {
  32.         sounds = {
  33.             {"Sounds/bullethits/Mbullet1.wav",SOUND_UNSCALABLE,200,5,60},
  34.             {"Sounds/bullethits/Mbullet2.wav",SOUND_UNSCALABLE,200,5,60},
  35.             {"Sounds/bullethits/Mbullet3.wav",SOUND_UNSCALABLE,200,5,60},
  36.             {"Sounds/bullethits/Mbullet4.wav",SOUND_UNSCALABLE,200,5,60},
  37.             
  38.         },
  39.         
  40.         decal = { 
  41.             texture = System:LoadTexture("Textures/Decal/metal.dds"),
  42.             scale = 0.04,
  43.         },
  44.         
  45.         particleEffects = {
  46.             name = "bullet.hit_metal_pancor.a",
  47.         },
  48.     },
  49.  
  50.     
  51.  
  52. -------------------------
  53.     melee_punch = {
  54.         sounds = {
  55.             {"sounds/player/footsteps/metal/step1.wav",SOUND_UNSCALABLE,185,5,30},
  56.             {"sounds/player/footsteps/metal/step2.wav",SOUND_UNSCALABLE,185,5,30},
  57.             {"sounds/player/footsteps/metal/step3.wav",SOUND_UNSCALABLE,185,5,30},
  58.             {"sounds/player/footsteps/metal/step4.wav",SOUND_UNSCALABLE,185,5,30},
  59.         },
  60.     },
  61.     melee_slash = {
  62.         sounds = {
  63.             {"sounds/weapons/machete/macheteplate2.wav",SOUND_UNSCALABLE,185,5,30},
  64.             {"sounds/weapons/machete/macheteplate3.wav",SOUND_UNSCALABLE,185,5,30},
  65.             {"sounds/weapons/machete/macheteplate4.wav",SOUND_UNSCALABLE,185,5,30},
  66.             {"sounds/weapons/machete/macheteplate5.wav",SOUND_UNSCALABLE,185,5,30},
  67.         },
  68.         particles = CommonEffects.common_machete_hit_particles.particles,
  69.  
  70.         decal = { 
  71.             texture = System:LoadTexture("Textures/Decal/metal_slash.dds"),
  72.             scale = 0.1,
  73.             random_scale = 100,
  74.             random_rotation = 0.5,
  75.         },
  76.     },
  77.     flashgrenade_hit =         
  78.     {
  79.             particles = 
  80.         {
  81.             { --HitMetalSparksTrail
  82.                 focus = 0.0,
  83.                 color = {1,1,1},
  84.                 speed = 8.0,
  85.                 count = 25, --default 15
  86.                 size = 0.045, 
  87.                 size_speed=0,
  88.                 gravity={x=0,y=0,z=-5},
  89.                 lifetime=0.5,
  90.                 tid = System:LoadTexture("Textures/Decal/Spark.dds"),
  91.                 tail_length = 0.2,
  92.                 frames=0,
  93.                 blend_type = 2
  94.             },
  95.         },
  96.     },
  97.     projectile_hit =     {
  98.     
  99.         particleEffects = {
  100.             name = "explosions.rocket.a",
  101.         },    
  102.     
  103.             particles = 
  104.         {
  105.             { --HitMetalSparksTrail
  106.                 focus = 0.0,
  107.                 color = {1,1,1},
  108.                 speed = 8.0,
  109.                 count = 25, --default 15
  110.                 size = 0.045, 
  111.                 size_speed=0,
  112.                 gravity={x=0,y=0,z=-5},
  113.                 lifetime=0.5,
  114.                 tid = System:LoadTexture("Textures/Decal/Spark.dds"),
  115.                 tail_length = 0.2,
  116.                 frames=0,
  117.                 blend_type = 2
  118.             },
  119.         },
  120.     },
  121.     mortar_hit = flashgrenade_hit,
  122.     smokegrenade_hit = flashgrenade_hit,
  123.     grenade_hit = flashgrenade_hit,
  124.     
  125. -------------------------------------
  126.     player_walk = CommonEffects.player_metal_walk,
  127.     player_run = CommonEffects.player_metal_run,
  128.     player_crouch = CommonEffects.player_metal_crouch,
  129.     player_prone = CommonEffects.player_metal_prone,
  130.     player_walk_inwater = CommonEffects.player_walk_inwater,
  131.     player_drop = {
  132.         sounds = {
  133.             {"sounds/player/bodyfalls/bodyfallrock1.wav",SOUND_UNSCALABLE,210,10,150},
  134.             {"sounds/player/bodyfalls/bodyfallrock2.wav",SOUND_UNSCALABLE,210,10,150},
  135.         },
  136. --        decal = { 
  137. --            texture = System:LoadTexture("Textures/Decal/Default.tga"),
  138. --            scale = 0.1,
  139. --        },
  140.     },
  141.     gameplay_physic = {
  142.         piercing_resistence = 15,
  143.         friction = 0.0,
  144.         bouncyness= 0.01, --default 0
  145.     },
  146.  
  147.     AI = {
  148.         fImpactRadius = 5,
  149.     },
  150.             
  151. }